/*	Graphics Library of Views (GLV) - GUI Building Toolkit
	See COPYRIGHT file for authors and license information */

//#include <math.h>
//#include "glv.h"
#include "glv_turd.h"

int main(int argc, char ** argv){

	//---- Intialize GLV
	GLV top;
	top.colors().back.set(0);

	Window win(640, 640, "GLV Test", &top);

	LayoutGrid layout(top, 1, 1, 60);
	
	//---- Hierarchy View
	View hierView; 
	
	//layout << hierView;
	layout.add(hierView);
	
	hierView (Event::MouseDrag, Behavior::mouseMove)
	         (Event::MouseDrag, Behavior::mouseResize);
	//<< new Label("Hierarchy", 0, -10);

	LayoutGrid lg0(hierView, 1, 2, 14);

	View v1;  
	v1.enable(CropChildren)
	  (Event::MouseDrag, Behavior::mouseMove)
	  (Event::MouseDrag, Behavior::mouseResize);
	
	View v2;
	v2.enable(CropChildren)
	  (Event::MouseDrag, Behavior::mouseMove)
	  (Event::MouseDrag, Behavior::mouseResize);
	
	//lg0 << v1;
	//lg0 << v2;
        lg0.add(v1);
        lg0.add(v2);
    
	Application::run();
	return 0;
}
